package com.jing.yao.modules.resource.dao.entity;


import com.jing.yao.component.entity.YaoBaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.List;

/**
 * 菜单
 *
 * @author lirui
 * @since 2020-06-24
 **/
@TableName("anji_plus_resource")
public class ResourceEntity extends YaoBaseEntity implements Serializable {

    private String resName;
    private String resCode;
    private String resUrl;
    private Integer isMenu;
    private Integer sortNo;
    private String icon;
    private Integer enabled;
    private String parentCode;
    private Integer parentFlag;

    @TableField(exist = false)
    private List<ResourceEntity> children;
    @TableField(exist = false)
    private List<String> subResCodes;

    public String getResName() {
        return resName;
    }

    public void setResName(String resName) {
        this.resName = resName;
    }

    public String getResCode() {
        return resCode;
    }

    public void setResCode(String resCode) {
        this.resCode = resCode;
    }

    public String getResUrl() {
        return resUrl;
    }

    public void setResUrl(String resUrl) {
        this.resUrl = resUrl;
    }

    public Integer getIsMenu() {
        return isMenu;
    }

    public void setIsMenu(Integer isMenu) {
        this.isMenu = isMenu;
    }

    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public Integer getParentFlag() {
        return parentFlag;
    }

    public void setParentFlag(Integer parentFlag) {
        this.parentFlag = parentFlag;
    }

    public List<ResourceEntity> getChildren() {
        return children;
    }

    public void setChildren(List<ResourceEntity> children) {
        this.children = children;
    }

    public List<String> getSubResCodes() {
        return subResCodes;
    }

    public void setSubResCodes(List<String> subResCodes) {
        this.subResCodes = subResCodes;
    }
}
